package com.xbkj.ui_design.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.xbkj.ui_design.databinding.FragmentMeBinding;
import com.xbkj.ui_design.databinding.FragmentMessageBinding;

/**
 * @Author: XDY.
 * @Email: 2280944114@qq.com
 * @CreateTime: 2025-02-28  23:50
 * @Description: TODO
 * @Version: 1.0
 */
public class MeFragment extends Fragment {

    private FragmentMeBinding binding;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Toast.makeText( MeFragment.this.getActivity(), "新创建", Toast.LENGTH_SHORT ).show();
        binding = FragmentMeBinding.inflate(getLayoutInflater());
    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return binding.getRoot();
    }

    public static MeFragment newInstance() {
        Bundle args = new Bundle();
        MeFragment fragment = new MeFragment();
        fragment.setArguments(args);
        return fragment;
    }
}